﻿#include "scriptlogdialog.h"
#include "ui_scriptlogdialog.h"

ScriptLogDialog::ScriptLogDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ScriptLogDialog)
{
    ui->setupUi(this);

    ui->textBrowser->setStyleSheet(QString::fromUtf8 ("background-color:black"));
}

ScriptLogDialog::~ScriptLogDialog()
{
    delete ui;
}

void ScriptLogDialog::addLog(QString log)
{
    if(log.isEmpty())
        return;

    ui->textBrowser->append(log);
}
